package SV_PERMS_WIDE;

public class Fixed_02 {
    public class FilePosix {
        public static void test() throws Exception {
            Path path = Paths.get("/home/ubuntu/test");
            String s = "rwxrwxr-x";
            Set<PosixFilePermission> perms = PosixFilePermissions.fromString(s);
            FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perms);
            Files.createTempDirectory(path, attr);
        }
    }
}
